package com.hl.card.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

public class Goods  extends Model<Goods> {

    /**
     * 主键id
     */
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;
    /**
     * 产品名称
     */
    @TableField("goods_name")
    private String goodsName;
    /**
     * 产品代码
     */
    @TableField("goods_code")
    private String goodsCode;
    /**
     * 添加时间
     */
    private String addtime;
    /**
     * 更新时间
     */
    private String updatetime;
    /**
     * 子产品代码
     */
    @TableField("series")
    private String series;


    /**
     * 当前版本
     */
    @TableField("nowtype")
    private String nowtype;

    public String getNowtype() {
        return nowtype;
    }

    public void setNowtype(String nowtype) {
        this.nowtype = nowtype;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    @Override
    public String toString() {
        return "{" +
                "id=" + id +
                ", goodsName=" + goodsName +
                ", goodsCode=" + goodsCode +
                ", addtime=" + addtime +
                ", updatetime=" + updatetime +
                "}";
    }
}
